package com.tyk.bookstore.back.order.service.impl;

import com.tyk.bookstore.back.order.model.dto.OrderPayDetail4TaskDto;
import com.tyk.bookstore.back.order.model.dto.OrderSaleDetail4TaskDto;
import com.tyk.bookstore.back.order.repository.OrderDetailRepository;
import com.tyk.bookstore.back.order.service.OrderDetailApiService;
import com.tyk.bookstore.back.order.util.MapStructOrder;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tyk
 * @description OrderDetailApiServiceImpl
 */
@Service
@RequiredArgsConstructor
public class OrderDetailApiServiceImpl implements OrderDetailApiService {
    private final OrderDetailRepository detailRepository;
    private final MapStructOrder mapStructOrder;

    @Override
    public List<OrderPayDetail4TaskDto> getOrderPayDetail4TaskDtoList() {
        return detailRepository.selectOrderPayDetail4TaskDtoList();
    }

    @Override
    public List<OrderSaleDetail4TaskDto> getOrderSaleDetail4TaskDtoList() {
        return detailRepository.selectOrderSaleDetail4TaskDtoList();
    }
}
